home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -serious- / programming / other / pmdev / install < prev    next >
Text File  |  2000-02-28  |  4KB  |  183 lines

  1. ;
  2. ; $VER: PopupMenuInstaller V1.2 (21.11.98)
  3. ; Copyright ©1996-1997 Henrik Isaksson
  4. ;
  5.  
  6. (complete 0)
  7.  
  8. (welcome "Welcome to the PopupMenu Library Developer Package Installer!")
  9.  
  10. (copylib
  11.     (prompt        "Installing the popupmenu.library...")
  12.     (help        @copylib-help)
  13.     (source        "Libs/popupmenu.library")
  14.     (dest        "LIBS:")
  15.     (confirm)
  16. )
  17.  
  18. (complete 10)
  19.  
  20.  
  21. (if    (askbool
  22.         (prompt "Do you want to install the preferences program?")
  23.         (help " ")
  24.         (default 1)
  25.     )
  26.     (
  27.         (set #prefsdest (askdir
  28.             (prompt "Where do you keep your preferences programs?")
  29.             (help @askdir-help)
  30.             (newpath)
  31.             (default "SYS:Prefs/")
  32.         ))
  33.  
  34.         (copyfiles
  35.             (prompt "Copying preferences programs.")
  36.             (help @copyfiles-help)
  37.             (source "prefs")
  38.             (dest #prefsdest)
  39.             (pattern "#?")
  40.         )
  41.     )
  42. )
  43.  
  44. (complete 25)
  45.  
  46. (if    (askbool
  47.         (prompt "Do you want to install the Demo programs (executables)?")
  48.         (help "A few examples showing what popupmenu.library can do.")
  49.         (default 0)
  50.     )
  51.     (
  52.  
  53.         (set #pmdest (askdir
  54.             (prompt "Where do you want to install the demos?\nA new directory will be created. (PopupMenu-Demos/)")
  55.             (help @askdir-help)
  56.             (newpath)
  57.             (default @default-dest)
  58.         ))
  59.  
  60.         (makedir (tackon #pmdest "PopupMenu-Demos/"))
  61.     
  62.         (copyfiles
  63.             (prompt "Copying demos.")
  64.             (help @copyfiles-help)
  65.             (source "Demos")
  66.             (dest (tackon #pmdest "PopupMenu-Demos/"))
  67.             (pattern "#?")
  68.         )
  69.  
  70.         (set @default-dest (tackon #pmdest "PopupMenu-Demos/"))
  71.     )
  72. )
  73.  
  74. (complete 45)
  75.  
  76. (if    (askbool
  77.         (prompt "Do you want to install the documentation?")
  78.         (default 0)
  79.         (help "")
  80.     )
  81.     (
  82.  
  83.         (set #pmddest (askdir
  84.             (prompt "Where do you want to install the documentation?")
  85.             (help @askdir-help)
  86.             (newpath)
  87.             (default "RAM:")
  88.         ))
  89.  
  90.         (copyfiles
  91.             (prompt "Copying docs.")
  92.             (help @copyfiles-help)
  93.             (source "")
  94.             (dest #pmddest)
  95.             (pattern "#?.(doc|guide)")
  96.         )
  97.     )
  98. )
  99.  
  100. (complete 60)
  101.  
  102. (if    (askbool
  103.         (prompt "Do you want to install the C include-files and example sources?")
  104.         (help "You will only need theese files if you are a C-developer.")
  105.         (default 0)
  106.     )
  107.     (
  108.         (set #incdest (askdir
  109.             (prompt "In wich directory or assign do you keep your include-files?")
  110.             (help "This will install the needed C-headers if you are going to develop your own menus.")
  111.             (newpath)
  112.             (default "INCLUDE:")
  113.         ))
  114.  
  115.         (copyfiles
  116.             (prompt "Copying Include files.")
  117.             (help @copyfiles-help)
  118.             (source "C/Include")
  119.             (dest #incdest)
  120.             (pattern "~(#?.info)")
  121.         )
  122.  
  123.         (set #cdemodest (askdir
  124.             (prompt "Where do you want the example source to be copied?")
  125.             (newpath)
  126.             (default "RAM:")
  127.             (help "Source code for the demo programs.")
  128.         ))
  129.             
  130.         (copyfiles
  131.             (prompt "Copying example sources.")
  132.             (help @copyfiles-help)
  133.             (source "C/Demos")
  134.             (dest #cdemodest)
  135.             (pattern "#?.c")
  136.         )
  137.     )
  138. )
  139.  
  140. (complete 80)
  141.  
  142. (if    (askbool
  143.         (prompt "Do you want to install the Amiga E modules and example sources?")
  144.         (help "You will only need theese files if you are a E-developer.")
  145.         (default 0)
  146.     )
  147.     (
  148.         (set #incdest (askdir
  149.             (prompt "In wich directory or assign do you keep your include-files?")
  150.             (help "This will install the required E-modules if you are going to develop your own menus.")
  151.             (newpath)
  152.             (default "EMODULES:")
  153.         ))
  154.  
  155.         (copyfiles
  156.             (prompt "Copying Include files.")
  157.             (help @copyfiles-help)
  158.             (source "E/Modules")
  159.             (dest #incdest)
  160.             (pattern "~(#?.info)")
  161.         )
  162.  
  163.         (set #cdemodest (askdir
  164.             (prompt "Where do you want the example source to be copied?")
  165.             (newpath)
  166.             (default "RAM:")
  167.             (help "Source code for the demo programs.")
  168.         ))
  169.             
  170.         (copyfiles
  171.             (prompt "Copying example sources.")
  172.             (help @copyfiles-help)
  173.             (source "e/Demos")
  174.             (dest #cdemodest)
  175.             (pattern "#?.e")
  176.         )
  177.     )
  178. )
  179.  
  180. (complete 99)
  181.  
  182. (exit)
  183.